﻿using System.ComponentModel;
using System.Runtime.InteropServices;

namespace NETool.Demo
{
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
    public struct Data()
    {
        public int IntValue;

        public bool BoolValue;

        public short ShortValue;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
        public byte[] Bytes = new byte[128];
    }

    public struct Data1()
    {
        public int IntValue;

        public bool BoolValue;

        public short ShortValue;
    }

    public enum TestEnum
    {
        [Description("AA")]
        test1 = 0xBBCCDD,

        test2 = 2,

        [Description("CC")]
        test3 = 65534
    }
}
